<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%=VUE_APP_TITLE%></title>
    <!--ie10及以下版本升级提示-->
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <script>
      /*@cc_on window.location.href="http://support.dmeng.net/upgrade-your-browser.html?referrer="+encodeURIComponent(window.location.href); @*/
    </script>
  </head>
  <body>
    <noscript>
      <strong
        >对不起，您的浏览器不支持 javaScript
        或浏览器已禁止执行JavaScript脚本，请打开浏览器执行
        JavaScript脚本的权限或更换浏览器后访问。</strong
      >
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <!--js内置对象扩展-->
    <script>
      //内置对象扩展
      //时间格式化
      Date.prototype.format = function(format) {
        var args = {
          "M+": this.getMonth() + 1,
          "d+": this.getDate(),
          "h+": this.getHours(),
          "m+": this.getMinutes(),
          "s+": this.getSeconds(),
          "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
          S: this.getMilliseconds()
        };
        if (/(y+)/.test(format))
          format = format.replace(
            RegExp.$1,
            (this.getFullYear() + "").substr(4 - RegExp.$1.length)
          );
        for (var i in args) {
          var n = args[i];
          if (new RegExp("(" + i + ")").test(format))
            format = format.replace(
              RegExp.$1,
              RegExp.$1.length == 1 ? n : ("00" + n).substr(("" + n).length)
            );
        }
        return format;
      };
      String.prototype.trim = function() {
        return this.replace(/(^\s*)|(\s*$)/g, "");
      };
      Number.prototype.format = function() {
        var num = this;
        if (!/^(\+|-)?\d+(\.\d+)?$/.test(num)) {
          return num;
        }
        // var re = new RegExp().compile("(\\d)(\\d{3})(,|\\.|$)");
        var re = /(\d)(\d{3})(,|\.|$)/;
        num += "";
        while (re.test(num)) {
          num = num.replace(re, "$1,$2$3");
        }
        return num;
      };
    </script>
  </body>
</html>
